import request from "@/utils/request";
import type { AxiosPromise } from "axios";
import type { ContentCategoryVO, ContentCategoryQuery } from "./types";

/**
 * 查询内容分区列表
 * @param query
 * @returns {*}
 */

export const listContentCategory = (
  query?: ContentCategoryQuery
): AxiosPromise<ContentCategoryVO[]> => {
  return request({
    url: "/business/contentCategory/list",
    method: "get",
    params: query,
  });
};
